﻿<%@ Page Title="" Language="C#" MasterPageFile="~/pages/Site.Master" AutoEventWireup="true"
    CodeBehind="PigletsManagement.aspx.cs" Inherits="OnlineManagement.Web.pages.PigletsManagement" %>

<%@ Register Assembly="WYJ.Web.Controls" Namespace="WYJ.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../resources/scripts/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="../resources/scripts/facebox.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(document).ready(function () {
     
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-box-header">
        <h3>
            仔猪管理</h3>
        <ul class="content-box-tabs">
            <li><a href="#tab1" class="default-tab">查看仔猪资料</a></li>
            <!-- href must be unique and match the id of target div -->
            <li><a href="#tab2">修改仔猪资料</a></li>
        </ul>
        <div class="clear">
        </div>
    </div>
    <div class="content-box-content">
           <div class="tab-content default-tab" id="tab1">
                <div class="notification attention png_bg"> 
                    <a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                    <div> 系统中定义的仔猪表示日龄在30天之内处于哺乳期的小猪。 </div>
                </div>
                 <table>
            <thead>
              <tr>
              <th>编号</th>
                <th>母猪耳号</th>
                <th>所在猪舍</th>
                <th>生长阶段</th>
                <th>仔猪品种</th>
                <th>出生日期</th>
                <th>总头数</th>
                <th>阉割日期</th>
                <th>操作</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="6">
                    <div class="pagination">
                        <asp:DataPager ID="DataPager1" PagedControlID="rpPiglets" runat="server">
                            <Fields>
                                <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" FirstPageText="第一页" NextPageText="" />
                                <asp:NextPreviousPagerField ShowNextPageButton="False" 
                                    PreviousPageText="&amp;laquo; 前一页"  />
                                <asp:NumericPagerField CurrentPageLabelCssClass="number current" />
                                <asp:NextPreviousPagerField ShowPreviousPageButton="False" 
                                    NextPageText="下一页 &amp;raquo;" />
                                <asp:NextPreviousPagerField ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" LastPageText="最后一页" 
                                    ShowLastPageButton="True" />
                            </Fields>
                        </asp:DataPager>
                    </div>
                <!-- End .pagination -->
                  <div class="clear"></div>
                </td>
              </tr>
            </tfoot>
            <tbody>
                <cc1:DataPagerRepeater ID="rpPiglets" runat="server" PersistentDataSource="true" >
                  <ItemTemplate>
                    <tr>
                        <td> <%#Eval("rowNum") %></td>
                        <td>
                            <%#Eval("BitID")%>
                        </td>
                         <td><%#Eval("CustomizeID")%>&nbsp;号</td>
                         <td>
                            <a href="javascript:void(0);"><%#Eval("PhaseName")%></a>
                         </td>
                        <td><%#Eval("TypeName")%></td>
                        <td><%#Eval("Birthday", "{0:yyyy年MM月dd日}")%></td>
                      
                        <td><%#Eval("Account")%> &nbsp;头</td>
                        <td ><asp:Label runat="server" ID="lbCastrateDate"><%#Eval("CastrateDate")%></asp:Label> </td>
                         <td>
                            <!-- Icons -->
                            <a href="PigletUpdate.aspx?sowId=<%#Eval("SowID") %>&&bitID=<%#Eval("BitID") %> &&letId=<%#Eval("PigletID") %>&&phaseName=<%#Eval("PhaseName")%>&&customizeID=<%#Eval("CustomizeID")%>&&pigType=<%#Eval("TypeName")%>&&birthday=<%#Eval("Birthday", "{0:yyyy年MM月dd日}")%>&&account=<%#Eval("Account")%>&&castrateDate=<%#Eval("CastrateDate") %>" title="修改" rel="modal">
                                <img src="../resources/images/icons/pencil.png" alt="修改" />
                             </a> 
                        </td>
                    </tr>
                </ItemTemplate>
                </cc1:DataPagerRepeater>
            </tbody>
          </table>
           </div>
            
    </div>
</asp:Content>
